package com.rd.student.jiaji.class4.suyan.zrrd.Read;

public class GameTest {
    public static void main(String[] args) {
        Role r1=new Role("苏岩",100);
        Role r2=new Role("刘海博",100);

        while(true){
            r1.attack(r2);
            if (r2.getBoold()==0){
                System.out.println(r1.getName()+"k.o"+r2.getName());
                System.out.println("刘海博是个大垃圾");
                break;
            }else {

            }
            r2.attack(r1);
            if (r1.getBoold()==0){
                System.out.println(r2.getName()+"KO"+r1.getName());
                System.out.println("刘海博是个大垃圾");
                break;
            }

        }
    }
}

